<?php

/**
 * @author Christopher Hazekamp
 * @copyright 2013
 */

//$db = new PDO("mysql:host=localhost;dbname=portfolio_db;", 'root', '');
//$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//$db->setFetchMode(PDO::FETCH_ASSOC);
require('pdo.php');
$db = new Database;

?>

<table>
	<tr>
		<th>ID</th>
		<th>Title</th>
	</tr>
<?php
$db->query("SELECT page_id,page_title FROM wc_pages WHERE page_id = :page_id");
$db->bind('page_id', 3);
foreach ($db->resultSet() as $row)
{
	echo "<tr>";
	echo "<td>" . $row['page_id'] . "</td>";
	echo "<td>" . $row['page_title'] . "</td>";
	echo "</tr>";
}

?>

</table>